<div id="edit_profile_container">
    <?php 
        echo '<div id="message_container">'.$error.'</div>';
        echo form_open('authenticated/profile/'.$this->session->userdata('idno'), array('id' => 'edit_profile_form')); 
        echo form_label('ID Number', 'idno');
        echo form_input($idno).'<br/>';
        echo form_label('First Name', 'fname');
        echo form_input($fname);
        echo form_label('Middle Name', 'mname');
        echo form_input($mname);
        echo form_label('Last Name', 'lname');
        echo form_input($lname).'<br/>';
        echo form_label('Old Password', 'old_pass');
        echo form_password($old_pass).'<br/>';
        echo form_label('New Password', 'new_pass');
        echo form_password($new_pass).'<br/>';
        echo form_label('Confirm Password', 'conf_pass');
        echo form_password($conf_pass).'<span id="no_match" style="color:red; visibility:hidden">Password do not match.</span><br/>';
        echo form_submit($save);
        echo anchor('authenticated/posts', 'Cancel', 'id="btn_cancel"');
        echo form_close();
    ?>
</div>